#include "GameWin.h"

GameWin::GameWin(
	WINAPP*  a_app,
	WINFPS*  a_fps,
	WINTIME* a_time,
	D3DF*    a_d3d,
	DINF*    a_din,
	bool     a_renew)
{
	m_app  = a_app;
	m_fps  = a_fps;
	m_time = a_time;
	m_d3d  = a_d3d;
	m_din  = a_din;

	strcpy_s(m_name,32,"GameWin");
	m_selfId = GAMEWIN;
	m_swapId = GAMEWIN;
	m_completed = false;
	m_renew = a_renew;
}

void GameWin::init()
{

}

void GameWin::reset()
{

}

void GameWin::release()
{

}

void GameWin::input()
{
	m_din->acquire();
}

void GameWin::update()
{

}

void GameWin::draw()
{
	m_d3d->drawBegin();
	m_d3d->drawText(m_name,V2D_ZERO,CL_RED);
	m_d3d->drawEnd();
}

void GameWin::pre()
{
	m_fps->update();
	m_time->update();
}

void GameWin::post()
{

}